<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
<base th:href="@{/}">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<!--style start-->
<th:block th:include ="commHeaderInclude::commHead"></th:block>
<th:block th:include ="commHeaderInclude::formPageComm"></th:block>
<th:block th:include ="commHeaderInclude::listPageComm"></th:block>
<style type="text/css">
</style>
<title>选择医保平台</title>
</head>
<body class="ht">
<th:block th:include="commHeaderInclude::loading"></th:block>
	<div class="tabTitle"><span><i class="mdi mdi-menu-up"></i>申请融资</span></div>
	<div class="content-wrapper">
		<div class="breadCrumb">
			<i class="mdi mdi-map-marker"></i>
			<span><span th:text="${session.mcpName}">医保贷业务系统</span><i class="mdi mdi-chevron-double-right"></i>融资服务<i class="mdi mdi-chevron-double-right"></i>申请融资</span>
		</div>
		<form class="searchForm" id="searchForm" method="post">
			<div class="card mb-3">
				<div class="card-body">
					<h4 class="card-title">按条件查询融资记录</h4>
					<div class="module searchModule" th:object="${vo.dto}">
						<ul class="mb-3">
							<li>
								<label>中征融资申请编号</label>
								<div><input type="text" name="financeNo" th:value="*{financeNo}" placeholder="输入申请编号" /></div>
							</li>
							<li>
								<label>资金方</label>
								<div><input type="text" name="bankOrgName" th:value="*{@util.fStr(bankOrgName)}" placeholder="输入资金方名称" /></div>
							</li>
							<li>
								<label>业务状态</label>
								<select name="financeStatus">
									<option value="">全部</option>
									<option 
										th:each="buss:${application.DictList.FinanceStatusList}"
										th:selected="${buss.code eq vo.dto.financeStatus}"
										th:value="${buss.code}"
										th:text="${buss.text}"></option>
								</select>							
							</li>
							<li>
								<label>授权状态</label>
								<select name="authStatus">
									<option value="">全部</option>
									<option 
										th:each="buss:${application.DictList.AuthStatusList}"
										th:selected="${buss.code eq vo.dto.authStatus}"
										th:value="${buss.code}"
										th:text="${buss.text}"></option>
								</select>
							</li>
							<li>
								<label>申请时间</label>
								<div><input class="ht-dateInput" type="date" name="applyTimeStart" th:value="*{applyTimeStart}" placeholder="开始日期" data-options="endSelector:'[name=applyTimeEnd]'" /></div>
								<span class="ht_dateText d-inlineBlock">至</span>
								<div><input class="ht-dateInput" type="date" name="applyTimeEnd" th:value="*{applyTimeEnd}" placeholder="结束日期" data-options="startSelector:'[name=applyTimeStart]'"/></div>
							</li>
							<li>
								<label style="background-color: transparent; border-right-color: transparent"></label>
							</li>
							<!--							<li><label>医保统筹区</label>-->
<!--								<div role="SelectGroup" data-options="url:'/mcp/base/area/',defaultText:'全部'">-->
<!--									<select name="province">-->
<!--										<option th:value="*{province}" class="selected" selected></option>-->
<!--									</select>-->
<!--									<select name="city" style="width: auto">-->
<!--										<option th:value="*{city}" class="selected" selected></option>-->
<!--									</select>-->
<!--									<select name="county" style="width: auto">-->
<!--										<option th:value="*{county}" class="selected" selected></option>-->
<!--									</select>-->
<!--								</div>-->
<!--							</li>-->
						</ul>
						<div class="searchBtnContainer">
							<input class="btn btn-primary" type="submit" id="search" value="查询">
							<input class="btn btn-clear" type="clear" role="ClearButton" value="清空">
						</div>
					</div>
				</div>
			</div>
		</form>
		<form class="listForm" id="listForm"  method="post">
			<div class="card mb-3">
				<div class="card-body">
					<h4 class="card-title">
						<span>申请融资列表</span>
						<a class="btn btn-primary" href="/mcp/hos/finance/create"><!--<i class="mdi mdi-pencil"></i>-->新增</a>
					</h4>
					<div class="module">
						<div class="hTableContainer">
						<table cellpadding="0" cellspacing="0" class="hTable" style="min-width:1600px;">
							<thead>
								<tr>
									<th>序号</th>
									<th>申请时间</th>
									<th>中征融资申请编号</th>
									<th>医保统筹区</th>
									<th>金融产品</th>
									<th>资金方</th>
									<th>币种</th>
									<th>申请金额</th>
									<th>授权书编号</th>
									<th>授权状态</th>
									<th>业务状态</th>
									<th>操作</th>
									<th>备注</th>
								</tr>
							</thead>
							<tbody>
								<tr th:each="li,item:${vo.page.list}" >
									<td th:text="${item.index+vo.page.startRow}">1</td>
							        <td th:text="*{#dates.format(li.applyTime,'yyyy-MM-dd')}">2</td>
							        <td><a class="textLink-primary" role="openFrameWindow" th:href="@{'base/finance/detail?id='+${li.id}+'&aid='+${li.aid}}" th:text="${li.financeNo}" target="_blank">中征融资申请编号</a></td>
							        <td th:text="${li.areaName}">4</td>
							        <td th:text="${@util.fStr(li.productName)}">5</td>	
							        <td><a class="textLink-primary" role="openFrameWindow" th:href="@{'base/bank/detail?id='+${li.bankOrgId}}" th:text="${@util.fStr(li.bankOrgName)}">6</a></td>
							        <td >人民币元</td>
							        <td th:text="${#numbers.formatDecimal(li.financeAmount,1,'COMMA',2,'POINT')}">8</td>
							        <td><a class="textLink-primary" role="openFrameWindow" th:href="@{'base/auth/detail?id='+${li.authId}+'&aid='+${li.authAid}}" th:text="${li.authNo}" target="_blank">授权书编号</a></td>
									<td th:text="${application.DictMap.AuthStatus123[li.authStatus]}"></td>
									<td th:text="${application.DictMap.FinanceStatus[li.financeStatus]}"></td>
							        <td><a class="btn btn-outline-primary btn-sm" role="openFrameWindow" th:classappend="${(li.financeStatus=='3') ? 'disabled' : ''}" th:href="@{${(li.financeStatus=='3')?'':'/hos/finance/cancel?id='+li.id+'&aid='+li.aid}}" >终止</a></td>
									<td><a class="btn btn-outline-primary btn-sm" role="openFrameWindow" th:href="@{'/hos/finance/cancelDetail?id='+${li.id}+'&aid='+${li.aid}}" th:if="${(li.revokeVerifyStatus!=null || li.financeStatus=='3')}">终止详情</a></td>
								</tr>
							</tbody>
						</table>
							<div class="noneRecord" th:if="${vo.page.total==0}" style="min-width:1600px;">查无记录！</div>
						</div>

						<th:block th:include ="commHeaderInclude::pageInfoComm">
						</th:block>
					</div>
				</div>
			</div>
		</form>
	</div>
</body>
<script>
	var page=new ListPage();
	page.init();
</script>
</html>
